Comments (14)
@Fred-sun Yes, a private DNS can no longer be created via this module, so a new module need to be
created.
from azure.
@haiyuazhang @Fred-sun Do you want me to work in the module? I will need you @haiyuazhang to test it.
@imjoseangel Welcome you work to add this module. I will test when you finish change! Thank you very much!
from azure.
I confirm this problem.
Also seems that the private/public type: flag is ignored and the zone is alwais created as public.
from azure.
Guys, Could you please check if you can create from the Azure Portal? From my side, it is working fine:
ansible -i inventories/local/hosts localhost -m azure_rm_dnszone -a "resource_group=rg name=private.example.com state=present type=private"
localhost | CHANGED => {
"changed": true,
"check_mode": false,
"state": {
"id": "/subscriptions/hidden/resourceGroups/rg/providers/Microsoft.Network/dnszones/private.example.com",
"name": "private.example.com",
"name_servers": null,
"number_of_record_sets": 1,
"registration_virtual_networks": null,
"resolution_virtual_networks": null,
"type": "private"
}
}
from azure.
@bit4man My test is also OK, could you tell me how you met this question? Thank you very much!
localhost | CHANGED => {
"changed": true,
"check_mode": false,
"state": {
"id": "/subscriptions/*********************************/resourceGroups/v-xisurg/providers/Microsoft.Network/dnszones/private1.example.com",
"name": "private1.example.com",
"name_servers": null,
"number_of_record_sets": 1,
"registration_virtual_networks": null,
"resolution_virtual_networks": null,
"tags": {},
"type": "private"
}
}
from azure.
@imjoseangel Note I'm uzing AzureUSGovernment - not the commercial end point. When I use the azure portal it's "portal.azure.us" - and I can create and link private DNS zones on the portal side (a few weeks back I could not). I don't have all the data at my finger tips, but the API and implementation of PrivateDNS has changed very recently on AzureUSGov and it looks like the old implementation is no longer available.
from azure.
Thank you @bit4man . Could you please test specifiying the cloud_environment
as defined under azure_rm_dnszone_module documentation?
- name: Create a DNS zone
azure_rm_dnszone:
resource_group: rg
name: private.example.com
type: private
cloud_environment: AzureUSGovernment
or
ansible -i inventories/local/hosts localhost -m azure_rm_dnszone -a "resource_group=rg name=private.example.com state=present type=private cloud_environment=AzureUSGovernment"
Thank you!
from azure.
@bit4man Dns zones and private Dns are two different modules, in which Dns zones(type: public and private). You can refer to the following two links. thank you!
private Dns: https://docs.microsoft.com/en-us/rest/api/dns/privatedns/privatezones
Dns zones: https://docs.microsoft.com/en-us/rest/api/dns/zones
from azure.
@haiyuazhang Could you please help confirm whether a new module azure_rm_dnsprivatezone needs to be added to distinguish between DNS zone and private DNS? Thank you very much!
from azure.
@haiyuazhang Thanks for your feedback. Will you add this module? Thank you!
from azure.
@haiyuazhang @Fred-sun Do you want me to work in the module? I will need you @haiyuazhang to test it.
from azure.
@Fred-sun PR #122 created. As soon as we test and merge this, I will work in the info one.
I have kept the name as azure_rm_privatednszone instead of azure_rm_dnsprivatezone to maintain naming consistency with Azure SDK. Tell me if you agree or you prefer to rename the module.
Thank you very much for your help!
from azure.
I also have developed the azure_rm_privatednszone_info. As soon as we get this merged, I will create a new PR.
Have a nice rest of the weekend
from azure.
@imjoseangel Sorry reply you later, we will review and advance the merger as soon as possible. Thank you!
from azure.
Related Issues (20)
- Collection Python requirements can no longer be installed on Mac ARM due to upstream uamqp dependency HOT 3
- issue with inventory module. List of Hosts being returned will be missing hosts at random HOT 1
- azure_rm_adgroup Present members is not idempotent and does not follow ansible best practices HOT 4
- azure.azcollection.azure_rm_adgroup module Should allow for setting the description of the group #1485 > Only a partial Fix. Will not update existing groups. HOT 1
- Triggering on-demand backup returns error HOT 2
- azure.azcollection.azure_rm_virtualmachinescalesetinstance_info and related modules incompatible with Flexible VM Scale Sets HOT 4
- Add UserAssigned Identities to the postgrsqlflexibleserver module
- The `network_profile.outbound_type` property of the `azure_rm_aks` module does not accept `managedNATGateway`/`userAssignedNATGateway` HOT 1
- Return detailed diff from the `azure_rm_aks` module HOT 1
- azure_rm_subscription_info does not function as documented or expectd HOT 10
- Upgrade from 1.19 to 2.x - "msg": "Find the key vault secret got exception, exception as The current credential is not configured to acquire tokens for tenant xxx. HOT 14
- azure_rm_accesstoken_info leads to TypeError: Session.request() got an unexpected keyword argument 'claims' HOT 4
- azure_rm_resource_info subscription_id passed as parameter is not overruling environment variable HOT 4
- Azure inventory traceback when NIC isn't fully provisioned
- azure_rm_adapplication_info add option "app_diff"
- IPv6 address parsed as IPv4 HOT 6
- Hi, @Fred-sun and @markstoel.
- Login via Federated Credentials for Managed Identities HOT 1
- azure_rm_adapplication is not idempotent HOT 3
- azure_rm_adgroup_info returns error if device is not member of group HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure.