-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
New Resource: azurerm_network_manager_verifier_workspace
#28754
base: main
Are you sure you want to change the base?
Conversation
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.
Hi @teowa ,
Thanks for this PR - I've taken a look through and left some minor comments. If we can fix those up, this should be good to go 👍
client := metadata.Client.Network.VerifierWorkspaces | ||
|
||
var config ManagerVerifierWorkspaceResourceModel | ||
if err := metadata.Decode(&config); err != nil { | ||
return fmt.Errorf("decoding: %+v", err) | ||
} | ||
|
||
networkManagerId, err := verifierworkspaces.ParseNetworkManagerID(config.NetworkManagerId) | ||
if err != nil { | ||
return fmt.Errorf("parsing `network_manager_id`: %+v", err) | ||
} | ||
|
||
subscriptionId := metadata.Client.Account.SubscriptionId |
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.
client := metadata.Client.Network.VerifierWorkspaces | |
var config ManagerVerifierWorkspaceResourceModel | |
if err := metadata.Decode(&config); err != nil { | |
return fmt.Errorf("decoding: %+v", err) | |
} | |
networkManagerId, err := verifierworkspaces.ParseNetworkManagerID(config.NetworkManagerId) | |
if err != nil { | |
return fmt.Errorf("parsing `network_manager_id`: %+v", err) | |
} | |
subscriptionId := metadata.Client.Account.SubscriptionId | |
client := metadata.Client.Network.VerifierWorkspaces | |
subscriptionId := metadata.Client.Account.SubscriptionId | |
var config ManagerVerifierWorkspaceResourceModel | |
if err := metadata.Decode(&config); err != nil { | |
return fmt.Errorf("decoding: %+v", err) | |
} | |
networkManagerId, err := verifierworkspaces.ParseNetworkManagerID(config.NetworkManagerId) | |
if err != nil { | |
return fmt.Errorf("parsing `network_manager_id`: %+v", err) | |
} |
* `location` - (Required) The Azure Region where the Network Manager Verifier Workspace should exist. Changing this forces a new Network Manager Verifier Workspace to be created. | ||
|
||
* `name` - (Required) The name which should be used for this Network Manager Verifier Workspace. Changing this forces a new Network Manager Verifier Workspace to be created. |
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.
* `location` - (Required) The Azure Region where the Network Manager Verifier Workspace should exist. Changing this forces a new Network Manager Verifier Workspace to be created. | |
* `name` - (Required) The name which should be used for this Network Manager Verifier Workspace. Changing this forces a new Network Manager Verifier Workspace to be created. | |
* `name` - (Required) The name which should be used for this Network Manager Verifier Workspace. Changing this forces a new Network Manager Verifier Workspace to be created. | |
* `location` - (Required) The Azure Region where the Network Manager Verifier Workspace should exist. Changing this forces a new Network Manager Verifier Workspace to be created. |
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.
fixed
Hi @ms-zhenhua , thanks for reviewing this! I have changed the code, please kindly take another look. |
Community Note
Description
New Resource:
azurerm_network_manager_verifier_workspace
ref:
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_network_manager_verifier_workspace
This is a (please select all that apply):
Related Issue(s)
Fixes #0000
Note
If this PR changes meaningfully during the course of review please update the title and description as required.