1

I'm trying to create a web app in azure using

azure.WebApps
.Define(name)
.WithExistingWindowsPlan(plan) 
.WithExistingResourceGroup(resourceGroupName)
.CreateAsyn()

Since the name must be globally unique, how can I check if the name exist already?

Dzior
  • 1,485
  • 1
  • 14
  • 30

1 Answers1

1

Similar to Erndob's comment there - I'll extend it by saying that catch the error and look into the specifics. If it's failing with a name not unique error - that's your check failing right there. Any other failures should be treated differently.

Mavi Domates
  • 4,262
  • 2
  • 26
  • 45