0)"> application/json @{ var err = new JObject(); err["errors"] = (JArray)context.Variables["validationErrors"]; return err.ToString(); } @((string)context.Variables["armBasePath"] + (string)context.Variables["scopeValue"] + "?api-version=2022-08-01") GET @("Bearer " + (string)context.Variables["armToken"]) application/json @{ var err = new JObject(); err["error"] = "scope does not exist: " + (string)context.Variables["scopeValue"]; return err.ToString(); } @((string)context.Variables["armBasePath"] + "/subscriptions/" + context.Request.MatchedParameters["id"] + "?api-version=2022-08-01") PUT @("Bearer " + (string)context.Variables["armToken"]) application/json @{ var input = (JObject)context.Variables["requestBody"]; var props = new JObject(); props["displayName"] = input["displayName"]; props["scope"] = input["scope"] != null ? input["scope"] : ""; props["state"] = input["state"] != null ? input["state"] : "active"; props["expirationDate"] = input["expirationDate"]; if (input["primaryKey"] != null) { props["primaryKey"] = input["primaryKey"]; } if (input["secondaryKey"] != null) { props["secondaryKey"] = input["secondaryKey"]; } var body = new JObject(); body["properties"] = props; return body.ToString(); } ())" /> application/json @((string)context.Variables["finalBody"]) application/json @(((IResponse)context.Variables["createResponse"]).Body.As())