Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions src/Support/Support/SupportTickets/NewAzSupportTicket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,6 @@ public override void ExecuteCmdlet()
throw new PSArgumentException(string.Format("TechnicalResourceId {0} does not belong to subscription {1}.", this.TechnicalTicketResourceId, this.SupportClient.SubscriptionId));
}

var resourceClient = AzureSession.Instance.ClientFactory.CreateArmClient<ResourceManagementClient>(
DefaultProfile.DefaultContext,
AzureEnvironment.Endpoint.ResourceManager);

var oDataQuery = new ODataQuery<GenericResourceFilter>($"resourceGroup eq '{technicalResourceId.ResourceGroupName}' and resourceType eq '{technicalResourceId.ResourceType}' and name eq '{technicalResourceId.ResourceName}'");

var result = resourceClient.Resources.List(oDataQuery);

if (result.Count() != 1)
{
throw new Exception(string.Format("TechnicalResourceId {0} was not found in subscription {1}.", this.TechnicalTicketResourceId, this.SupportClient.SubscriptionId));
}
}

var customHeaders = new Dictionary<string, List<string>>();
Expand Down