-
Notifications
You must be signed in to change notification settings - Fork 185
DNS samples #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
DNS samples #150
Conversation
| "github.com/Azure-Samples/azure-sdk-for-go-samples/helpers" | ||
| "github.com/Azure-Samples/azure-sdk-for-go-samples/iam" | ||
|
|
||
| dns "github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2017-09-01/dns" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dns [](start = 1, length = 3)
dns is not needed
| helpers.ResourceGroupName(), | ||
| zoneName, | ||
| dns.Zone{ | ||
| Location: to.StringPtr("global"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
global [](start = 27, length = 6)
I dont know enough about the DNS service, exactly what dooes global mean in this context? Can't zones be created on westus?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dns is a global service so it doesn't really make sense to have a zone in a region. Is the parameter required ? it might be needed for private zones as those will be bound to a region.
mcardosos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is not passing, also it looks like this should be rebased
| os.Exit(m.Run()) | ||
| } | ||
|
|
||
| func ExampleDnsZone() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this get a better name? More specific on what the sample is doing
depends on #149 to update Gopkg.* files, then this PR adds one line to Gopkg.lock for the
dnspackage.closes #87
helps with Azure/azure-sdk-for-go#1161